<?php

namespace zhtfrontend\models\datas;

use Yii;

/**
 * This is the model class for table "{{%category_attr}}".
 *
 * @property integer $id
 * @property integer $site_id
 * @property integer $category_id
 * @property integer $pc_is_show
 * @property integer $mobile_is_show
 * @property integer $pc_sort
 * @property integer $mobile_sort
 */
class CategoryAttr extends \zhtfrontend\components\bases\BaseModel
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return '{{%category_attr}}';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['site_id', 'category_id', 'pc_is_show', 'mobile_is_show', 'pc_sort', 'mobile_sort'], 'integer']
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => Yii::t('zhtfrontend', '自动编号'),
            'site_id' => Yii::t('zhtfrontend', '广场id'),
            'category_id' => Yii::t('zhtfrontend', '分类id'),
            'pc_is_show' => Yii::t('zhtfrontend', 'pc端是否显示（1 显示 0 隐藏）'),
            'mobile_is_show' => Yii::t('zhtfrontend', '移动端是否显示（1显示 0 隐藏）'),
            'pc_sort' => Yii::t('zhtfrontend', 'pc端排序（数字越大越靠前）'),
            'mobile_sort' => Yii::t('zhtfrontend', '移动端排序（数字越大越靠前）'),
        ];
    }
}
